package richbar.com.richbar.view.dialog;

import android.app.Activity;
import android.view.View;
import android.widget.Button;

import richbar.com.richbar.R;


/**
 * Created by Administrator on 2017/11/17.
 */

public class ShareDialog extends BaseDialog {

    private Button btn_1;
    private Button btn_2;
    private Button btn_3;
    private OnClickLister listener;


    public ShareDialog(Activity mActivity, OnClickLister listener) {
        super(mActivity);
        this.listener = listener;
    }


    @Override
    public int getAnimStyle() {
        return 0;
    }

    @Override
    public int getLayoutRes() {
        return R.layout.dialog_sharewx;
    }

    @Override
    public void initView() {
        btn_1 = (Button) findViewById(R.id.btn_1);
        btn_2 = (Button) findViewById(R.id.btn_2);
        btn_3 = (Button) findViewById(R.id.btn_3);
        btn_1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                dismiss();
                listener.wx1();
            }
        });

        btn_2.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                dismiss();
                listener.wx2();
            }
        });
        btn_3.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                dismiss();
            }
        });
    }

    public interface OnClickLister {
        void wx1();

        void wx2();

    }
}
